package bpmn.structure;

import java.util.ArrayList;

public class Collaboration extends BPMNElem
{
    private final ArrayList<Participant> participants;

    {
        type = BPMNElemType.Collaboration;
    }

    public Collaboration(String id)
    {
        super(id);
        participants = new ArrayList<>();
    }

    public void addParticipant(Participant p)
    {
        participants.add(p);
    }

    public ArrayList<Participant> getParticipants()
    {
        return participants;
    }
}
